const app = getApp();
const db = wx.cloud.database();
Page({
    data: {
      videoList:[]

    },
    
  onLoad: function (options) {
    let that = this;
    //查询视频课
    db.collection('video').get().then(res => {

      console.info(res);
      
      that.setData({
        videoList: res.data
      });
    })
  }
});